<template>
  <div>
    <h1>我的已办</h1>
    <template>
      <el-table
          :data="tableData"
          style="width: 100%">
        <el-table-column
            prop="name"
            label="请假人"
            width="180">
        </el-table-column>
        <el-table-column
            prop="createTime"
            label="请假开始时间"
            width="180">
        </el-table-column>
        <el-table-column
            prop="endTime"
            label="请假结束时间"
            width="180">
        </el-table-column>
        <el-table-column
            prop="type"
            label="请假类型"
            width="180">
        </el-table-column>
        <el-table-column
            prop="content"
            label="审批意见"
            width="180">
        </el-table-column>
        <el-table-column
            prop="reason"
            label="请假原因"
            width="180">
        </el-table-column>
        <el-table-column
            prop="days"
            label="请假天数">
        </el-table-column>
        <el-table-column
            prop="createTimes"
            label="审批时间"
            width="120">
        </el-table-column>
      </el-table>
    </template>

  </div>
</template>

<script>
export default {
  name: "LeaveYBView",
  data() {
    return {
      tableData:[],

    }
  }, methods: {
    list() {
      this.axios.post("/service/leaves/myCompletion").then(res=>{
        this.tableData=res.data.data;
      })
    }
  }, created() {
    this.list();
  }
}
</script>

<style scoped>

</style>